<?php

class DB extends \Illuminate\Database\Capsule\Manager{
}

$database = [
    'driver'    => 'mysql',
    'host'      => env('DB_HOST', '114.215.133.153'),
    'database'  => env('DB_NAME', 'ultron'),
    'username'  => env('DB_USER', 'root'),
    'password'  => env('DB_PASS', '123456'),
    'port'      => env('DB_PORT', '65501'),
    'charset'   => 'utf8',
    'collation' => 'utf8_unicode_ci',
    'prefix'    => '',
];

$connection = new DB();
$connection->addConnection($database);
$connection->bootEloquent();
$connection->setAsGlobal();

